package com.gcxy.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gcxy.conf.result.PageDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class FenceDto extends PageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键、自增长")
    @TableId(value = "fence_id", type = IdType.AUTO)
    private Integer fenceId;

    @ApiModelProperty(value = "圏舍id（外键关联圈舍）")
    private Integer penId;

    @ApiModelProperty(value = "圏舍名称")
    private String penName;

    @ApiModelProperty(value = "牧场编号（外键关联牧场）")
    private String ranchId;

    @ApiModelProperty(value = "牧场名称")
    private String ranchName;

    @ApiModelProperty(value = "围栏名称（同圏舍下唯一）")
    private String fenceName;

    @ApiModelProperty(value = "存栏量")
    private Integer amountLivestock;

    @ApiModelProperty(value = "是否启用(1:启用，0:停用)")
    private Integer isEnable;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
